<?php
	include("connection/connection.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	<table class="reference" width="190" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="#3bb0dc">
		<?php
			$querycategory="SELECT * FROM news";
			$resultcategory = mysql_query($querycategory) or die(mysql_error());
			while($rowscategory = mysql_fetch_array($resultcategory)){?>
				
			<tr>
				<td width="190" height="25" class="menu_title_text" align="left">
					<a href="index.php?admin=newAdmin&do=listgroupnew&id=<?php echo $rowscategory['id'];?>"><?php echo $rowscategory['titleNew'];?></a>
				</td>	
				<td><a href="index.php?admin=newAdmin&do=formeditnewcategory&id=<?php echo $rowscategory['id'];?>"><img src="images/edit.gif" width="17" height="17" border="0" /></a></td>
				<td><a href="index.php?admin=newAdmin&do=deletenewcategory&id=<?php echo $rowscategory['id'];?>" onclick="return confirm('Bạn có muốn xoá danh mục tin này không?');"><img src="images/delete.gif" width="17" height="17" border="0" /></a></td>
			</tr>
		<?php
		}
		?>
	</table>
</body>
</html>
